import React, {Component} from 'react';
import {hot} from 'react-hot-loader/root';
import {routerRedux} from 'dva/router';
import Frames from './components/frames';
import {connect} from 'dva';
import {Skeleton} from 'antd';

@connect(({global, dashboard}) => ({
    global,
    dashboard
}))
class RouteDashboard extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }

    changeTabgs = val => {
        const {dispatch} = this.props;
        dispatch(routerRedux.push(val));
    };
    render() {
        const {match} = this.props;
        return (
            <section>
                <Frames />
                <section className="bg-fff ui-p-15 ui-mt-15">
                    <Skeleton paragraph={{rows: 4}} />
                </section>
            </section>
        );
    }
}

export default hot(RouteDashboard);
